// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   Res_TreeNavDTO.java

package com.hfstu.ifs.dto;

import com.hfstu.ifs.model.*;
import java.lang.reflect.InvocationTargetException;
import org.apache.commons.beanutils.BeanUtils;

public class Res_TreeNavDTO
	implements Cloneable
{

	private String id;
	private String code;
	private String name;
	private String parentId;
	private Integer hide;
	private String funcBindTag;
	private String funcDefId;
	private String funcDefName;
	private String navControlId;
	private String navControlName;
	private String url;
	private String target;
	private String nodeType;
	private boolean checked;

	public Res_TreeNavDTO()
	{
		nodeType = "treeNav";
		checked = false;
	}

	public boolean isChecked()
	{
		return checked;
	}

	public void setChecked(boolean checked)
	{
		this.checked = checked;
	}

	public String getId()
	{
		return id;
	}

	public void setId(String id)
	{
		this.id = id;
	}

	public String getCode()
	{
		return code;
	}

	public void setCode(String code)
	{
		this.code = code;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public String getParentId()
	{
		return parentId;
	}

	public void setParentId(String parentId)
	{
		this.parentId = parentId;
	}

	public Integer getHide()
	{
		return hide;
	}

	public void setHide(Integer hide)
	{
		this.hide = hide;
	}

	public String getNodeType()
	{
		return nodeType;
	}

	public void setNodeType(String nodeType)
	{
		this.nodeType = nodeType;
	}

	public String getFuncBindTag()
	{
		return funcBindTag;
	}

	public void setFuncBindTag(String funcBindTag)
	{
		this.funcBindTag = funcBindTag;
	}

	public String getFuncDefId()
	{
		return funcDefId;
	}

	public void setFuncDefId(String funcDefId)
	{
		this.funcDefId = funcDefId;
	}

	public String getFuncDefName()
	{
		return funcDefName;
	}

	public void setFuncDefName(String funcDefName)
	{
		this.funcDefName = funcDefName;
	}

	public String getUrl()
	{
		return url;
	}

	public void setUrl(String url)
	{
		this.url = url;
	}

	public String getTarget()
	{
		return target;
	}

	public void setTarget(String target)
	{
		this.target = target;
	}

	public String getNavControlId()
	{
		return navControlId;
	}

	public void setNavControlId(String navControlId)
	{
		this.navControlId = navControlId;
	}

	public String getNavControlName()
	{
		return navControlName;
	}

	public void setNavControlName(String navControlName)
	{
		this.navControlName = navControlName;
	}

	public Res_TreeNavDTO transfer(TreeNavigation treeNavigation)
	{
		try
		{
			BeanUtils.copyProperties(this, treeNavigation);
		}
		catch (IllegalAccessException e)
		{
			e.printStackTrace();
		}
		catch (InvocationTargetException e)
		{
			e.printStackTrace();
		}
		if (treeNavigation.getFuncDef() != null)
		{
			setFuncDefId(treeNavigation.getFuncDef().getId());
			setFuncDefName(treeNavigation.getFuncDef().getName());
		}
		if (treeNavigation.getNavControl() != null)
		{
			setNavControlId(treeNavigation.getNavControl().getId());
			setNavControlName(treeNavigation.getNavControl().getName());
		}
		return this;
	}

	public Object clone()
	{
		Res_TreeNavDTO o = null;
		try
		{
			o = (Res_TreeNavDTO)super.clone();
		}
		catch (CloneNotSupportedException e)
		{
			e.printStackTrace();
		}
		return o;
	}
}
